package com.xbh.Book.service;

import com.xbh.Book.pojo.Book;
import com.xbh.Book.pojo.Page;

import java.util.List;

/**
 * @program: JavaWebExer
 * @description:
 * @author: 许宝华
 * @create: 2021-04-23 09:06
 */

public interface BookService {
    //添加
    public void addBook(Book book);
    //删除
    public void deleteBookById(Integer id);
    //修改
    public void updateBook(Book book);
    //查询
    public Book queryBookById(Integer id);
    //查询
    public List<Book> queryBooks();

    Page<Book> page(int pageNo, int pageSize);

    Page<Book> pageByPrice(int pageNo, int pageSize, int min, int max);
}
